import { get,post ,fileDownload} from "@/utils/request"
/**
 * 详情
 */
export const GetInfoById=(formKey:string,params:any)=>{
    return get(`/acct-service/${formKey}/info`,params)
}

export const GetInfoList = (formKey: string, params: any) => {
    return post(`/acct-service/${formKey}/list`, params)
}

/**
 * 钱包列表
 */
export const WalletList = (params:any)=>{
    return post(`/pay/wallet/admin/wallet/list`,params)
}

/**
 * 钱包列表导出
 */
export const exportWalletOpenAPI = (params: any, fileName: string)=>{
    return fileDownload("/pay/wallet/admin/wallet/export",params, fileName)
}

/**
 * 开户日志
 */
export const GetOpenList = (params:any)=>{
    return post(`/pay/wallet/admin/openLog/list`,params)
}

/**
 * 开户日志详情
 */
export const OpenLogInfo = (params:any)=>{
    return get(`/pay/wallet/admin/openLog/info`,params)
}

/**
 * 充值记录
 */
export const RechargeRecord = (params:any)=>{
    return post(`/pay/wallet/admin/rechargeRecord/list`,params)
}

/**
 * 充值记录导出
 */
export const exportWalletRechargeAPI = (params: any, fileName: string)=>{
    return fileDownload("/pay/wallet/admin/rechargeRecord/export",params, fileName)
}

/**
 * 充值记录详情
 */
export const RechargeRecordIifo = (params:any)=>{
    return get(`/pay/wallet/admin/rechargeRecord/info`,params)
}

/**
 * 充值日志
 */
export const RechargeLog = (params:any)=>{
    return post(`/pay/wallet/admin/rechargeLog/list`,params)
}

/**
 * 充值日志详情
 */
export const RechargeLogInfo = (params:any)=>{
    return get(`/pay/wallet/admin/rechargeLog/info`,params)
}

/**
 * 提现记录
 */
export const WithdrawRecord = (params:any)=>{
    return post(`/pay/wallet/admin/withdrawRecord/list`,params)
}

/**
 * 提现记录详情
 */
export const WithdrawRecordInfo = (params:any)=>{
    return get(`/pay/wallet/admin/withdrawRecord/info`,params)
}

/**
 * 提现日志
 */
export const WithdrawLog = (params:any)=>{
    return post(`/pay/wallet/admin/withdrawLog/list`,params)
}

/**
 * 提现日志详情
 */
export const WithdrawLogInfo = (params:any)=>{
    return get(`/pay/wallet/admin/withdrawLog/info`,params)
}

/**
 * 消费返现列表
 */
export const cashBackList = (params:any)=>{
    return post(`/pay/wallet/admin/cashback/list`,params)
}

/**
 * 电子钱包统计---开户
 */
export const openStatistic = ()=>{
    return get(`/pay/wallet/admin/wallet/statistics`)
}

/**
 * 电子钱包统计---充值
 */
export const rechargeStatistic = ()=>{
    return get(`/pay/wallet/admin/rechargeRecord/statistics`)
}

/**
 * 电子钱包统计---返现
 */
export const cashBackStatistic = ()=>{
    return get(`/pay/wallet/admin/cashback/statistics`)
}


/**
 * 获得所有人员标签
 */
export const getAllTagList = (params:any)=>{
    return post(`/pay/wallet/tips/tagsList`,params)
}

/**
 * 温馨提示列表
 */
export const getTipsList = (params:any)=>{
    return post(`/pay/wallet/tips/list`,params)
}

/**
 * 新增温馨提示
 */
export const addTipsList = (params:any)=>{
    return post(`/pay/wallet/tips/save`,params)
}

/**
 * 编辑温馨提示
 */
export const editTipsList = (params:any)=>{
    return post(`/pay/wallet/tips/update`,params)
}

/**
 * 删除温馨提示
 */
export const delTipsList = (params:any)=>{
    return post(`/pay/wallet/tips/delete`,params)
}


/**
 * 换绑
 */
export const changeBindList = (params:any)=>{
    return post(`/pay/wallet/admin/modifyBankCardLog/list`,params)
}

